package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Books;

/**
 * booksMapper接口
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
public interface BooksMapper 
{
    /**
     * 查询books
     * 
     * @param id books主键
     * @return books
     */
    public Books selectBooksById(Long id);

    /**
     * 查询books列表
     * 
     * @param books books
     * @return books集合
     */
    public List<Books> selectBooksList(Books books);

    /**
     * 新增books
     * 
     * @param books books
     * @return 结果
     */
    public int insertBooks(Books books);

    /**
     * 修改books
     * 
     * @param books books
     * @return 结果
     */
    public int updateBooks(Books books);

    /**
     * 删除books
     * 
     * @param id books主键
     * @return 结果
     */
    public int deleteBooksById(Long id);

    /**
     * 批量删除books
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBooksByIds(Long[] ids);
}
